using System.Collections.Generic;

namespace Verse;

public class ResearchProjectTagDef : Def
{
	public int CompletedProjects()
	{
		int num = 0;
		List<ResearchProjectDef> allDefsListForReading = DefDatabase<ResearchProjectDef>.AllDefsListForReading;
		for (int i = 0; i < allDefsListForReading.Count; i++)
		{
			ResearchProjectDef researchProjectDef = allDefsListForReading[i];
			if (researchProjectDef.IsFinished && researchProjectDef.HasTag(this))
			{
				num++;
			}
		}
		return num;
	}
}
